import React, { lazy } from 'react'
import {
    HomeOutlined,
    UserOutlined,
    CopyOutlined,
    FormOutlined
} from '@ant-design/icons'
const menus = [
    {
        path: '/',
        redirect: '/home',
        meta: {//该路由不在页面显示
            hidden: true
        }
    },
    {
        path: '/home',
        title: '首页',
        key: '0-0',
        icon: <HomeOutlined />,
        component: lazy(() => import('../views/home/Index'))
    },
    {
        path: '/drugs',
        title: '药品管理',
        key: '0-1',
        icon: <HomeOutlined />,
        redirect: '/drugs/classmanage',
        children: [
            {
                path: '/drugs/classmanage',
                title: '分类管理',
                key: '0-1-0',
                component: lazy(() => import('../views/drugs/Kind/Classmanage'))
            },
            {
                path: '/drugs/classmanagetwo',
                title: '分类管理',
                component: lazy(() => import('../views/drugs/Kind/ClassmanageTwo')),
                meta: { //该路由不在页面显示
                    hidden: true
                }
            },
            {
                path: '/drugs/symptom',
                title: '症状管理',
                key: '0-1-1',
                component: lazy(() => import('../views/drugs/Sympto/Symptommanage'))
            },
            {
                path: '/drugs/symptomtwo',
                title: '症状管理',
                component: lazy(() => import('../views/drugs/Sympto/SymptomTow')),
                meta: {//该路由不在页面显示
                    hidden: true
                }
            },
            {
                path: '/drugs/drugmanage',
                title: '药品管理',
                key: '0-1-2',
                component: lazy(() => import('../views/drugs/Drugmanage/Drugmanage'))
            },

            {
                path: '/drugs/addDrugs',
                title: '新增药品',
                // key: '0-1-2',
                component: lazy(() => import("../views/drugs/Drugmanage/Adddrugs")),
                meta: {
                    hidden: true
                }
            },
            {
                path: '/drugs/drugaudit',
                title: '药品审核',
                key: '0-1-3',
                component: lazy(() => import('../views/drugs/Drugcheck/Drugaudit'))
            },
        ]
    },
    {
        path: '/order',
        title: '订单管理',
        key: '0-2',
        icon: <CopyOutlined />,
        redirect: '/order/drugorders',
        children: [
            {
                path: '/order/drugorders',
                title: '药品订单',
                key: '0-2-0',
                component: lazy(() => import('../views/order/Drugorders'))
            },
            {
                path: '/order/refundmoney',
                title: '退款申请',
                key: '0-2-1',
                component: lazy(() => import('../views/order/RefundMoney'))
            },
            {
                path: '/order/grouporder',
                title: '拼团订单',
                key: '0-2-2',
                component: lazy(() => import('../views/order/Grouporder'))
            }
        ]
    },
    {
        path: '/promotion',
        title: '促销管理',
        key: '0-3',
        redirect: '/promotion/coupon',
        icon: <HomeOutlined />,
        children: [
            {
                path: '/promotion/coupon',
                title: '优惠券',
                key: '0-3-0',
                component: lazy(() => import('../views/promotion/Coupon/Coupon'))
            },
            {
                path: '/promotion/limitedkill',
                title: '限时秒杀',
                key: '0-3-1',
                component: lazy(() => import('../views/promotion/Limitedkill/Limitedkill'))
            },
            {
                path: '/promotion/activitymanager',
                title: '活动管理',
                key: '0-3-2',
                component: lazy(() => import('../views/promotion/Activitymanager/Activitymanager'))
            },
            {
                path: '/promotion/addactivity',
                title: '新增活动',
                // key: '0-3-2',
                component: lazy(() => import('../views/promotion/Activitymanager/AddActivoty')),
                meta: {//该路由不在页面显示
                    hidden: true
                }
            },
            {
                path: '/promotion/editactivity',
                title: '编辑活动',
                // key: '0-3-2',
                component: lazy(() => import('../views/promotion/Activitymanager/EditActivity')),
                meta: {//该路由不在页面显示
                    hidden: true
                }
            },
            {
                path: '/promotion/groupdiscount',
                title: '拼团折扣',
                key: '0-3-3',
                component: lazy(() => import('../views/promotion/Groupdiscount/Groupdiscount'))
            }
        ]
    },
    {
        path: '/usermanager',
        title: '用户管理',
        key: '0-4',
        icon: <UserOutlined />,
        redirect: '/usermanager/list',
        children: [
            {
                path: '/usermanager/list',
                title: '用户列表',
                key: '0-4-0',
                component: lazy(() => import('./../views/user/List'))
            }
        ]
    },
    {
        path: '/setup',
        title: '设置',
        key: '0-5',
        icon: <UserOutlined />,
        redirect: '/setup/basicsettings',
        children: [
            {
                path: '/setup/basicsettings',
                title: '基本设置',
                key: '0-5-0',
                component: lazy(() => import('./../views/setup/BasicSettings'))
            },
            {
                path: '/setup/messagealert',
                title: '消息提醒',
                key: '0-5-1',
                component: lazy(() => import('./../views/setup/MessageAlert'))
            }
        ]
    },
    {
        path: '/content',
        title: '内容管理',
        key: '0-6',
        icon: <UserOutlined />,
        redirect: '/content/bannermanagement',
        children: [
            {
                path: '/content/bannermanagement',
                title: '首页轮播图管理',
                key: '0-6-0',
                component: lazy(() => import('./../views/content/Banner/BannerManagement'))
            },
            {
                path: '/content/addBanner',
                title: '添加轮播图',
                component: lazy(() => import('./../views/content/Banner/AddBanner')),
                meta: {//该路由不在页面显示
                    hidden: true
                }
            },
            {
                path: '/content/editBanner',
                title: '编辑轮播图',
                component: lazy(() => import('./../views/content/Banner/EditBanner')),
                meta: {//该路由不在页面显示
                    hidden: true
                }
            },
            {
                path: '/content/find',
                title: '发现',
                key: '0-6-1',
                component: lazy(() => import('../views/content/FIND/Find'))
            },
            {
                path: '/content/addfind',
                title: '增加发现',
                component: lazy(() => import('../views/content/FIND/AddFind')),
                meta: {//该路由不在页面显示
                    hidden: true
                }
            },
            {
                path: '/content/editfind',
                title: '编辑发现',
                component: lazy(() => import('../views/content/FIND/EditFind')),
                meta: {//该路由不在页面显示
                    hidden: true
                }
            },
            {
                path: '/content/pharmacistmanage',
                title: '药师管理',
                key: '0-6-2',
                component: lazy(() => import('../views/content/PharmacistManage/PharmacistManage'))
            },
            {
                path: '/content/addpharmacist',
                title: '新增药师',
                // key: '0-6-2',
                component: lazy(() => import('../views/content/PharmacistManage/AddPharmacist')),
                meta: {//该路由不在页面显示
                    hidden: true
                }
            },
            {
                path: '/content/editPharmacist',
                title: '编辑药师',
                // key: '0-6-2', 
                component: lazy(() => import('../views/content/PharmacistManage/EditPharmacist')),
                meta: {//该路由不在页面显示
                    hidden: true
                }
            }
        ]
    },
    {
        path: '/jurisdiction',
        title: '权限',
        key: '0-7',
        icon: <FormOutlined />,
        redirect: '/jurisdiction/membermanagement',
        children: [
            {
                path: '/jurisdiction/membermanagement',
                title: '成员管理',
                key: '0-7-0',
                component: lazy(() => import('./../views/jurisdiction/MemberManagement'))
            },
            {
                path: '/jurisdiction/rolemanagement',
                title: '角色管理',
                key: '0-7-1',
                component: lazy(() => import('./../views/jurisdiction/RoleManagement'))
            }
        ]
    },

]

export default menus